package com.itheima.project.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.project.mapper.DishFlavorMapper;
import com.itheima.project.pojo.DishFlavor;
import com.itheima.project.service.IDishFlavorService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description： 菜品口味 服务实现类
 */
@Service
public class DishFlavorServiceImpl extends ServiceImpl<DishFlavorMapper, DishFlavor> implements IDishFlavorService {
    @Override
    public List<DishFlavor> findDishFlavorByDishId(Long dishId) {
        return list(Wrappers.<DishFlavor>lambdaQuery().eq(DishFlavor::getDishId, dishId));
    }
}
